package com.xiangyi.teachingsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiangyi.teachingsystem.entity.dto.CourseUserDto;
import com.xiangyi.teachingsystem.entity.po.Course;
import com.xiangyi.teachingsystem.entity.po.User;

import java.util.List;

public interface CourseService extends IService<Course> {
    void addCourse(Course course);

    List<Course> teachingCourseList(Integer userId);

    Course getOneByCourseIdAndUserId(String courseName, Integer userId);

    void delCourse(Integer courseId);

    User getCourseUserBySign(String sign);

    CourseUserDto getInfoById(Integer courseId);

    List<Course> courseList();
}
